<h1>Listing template_parts</h1>

<table>
  <tr>
    <th>Created at</th>
    <th>Modified at</th>
    <th>Name</th>
    <th>Supplier</th>
    <th>Notes</th>
    <th>Delivery time estimate</th>
    <th>Cost estimate</th>
    <th>Delivery estimate</th>
    <th>Template cmodel</th>
  </tr>

<% for template_part in @template_parts %>
  <tr>
    <td><%=h template_part.created_at %></td>
    <td><%=h template_part.modified_at %></td>
    <td><%=h template_part.name %></td>
    <td><%=h template_part.supplier %></td>
    <td><%=h template_part.notes %></td>
    <td><%=h template_part.delivery_time_estimate %></td>
    <td><%=h template_part.cost_estimate %></td>
    <td><%=h template_part.delivery_estimate %></td>
    <td><%=h template_part.cmodel_id %></td>
    <td><%= link_to 'Show', template_part %></td>
    <td><%= link_to 'Edit', edit_template_part_path(template_part) %></td>
    <td><%= link_to 'Destroy', template_part, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>



<%= link_to 'New template_part', new_template_part_path %>
